import request from '@/utils/request'

// 用户登录次数
export function useCount(query) {
  return request({
    url: '/system/total/user/login/count',
    method: 'get',
    params: query
  })
}
// 租户用户趋势
export function useCountqs(query) {
  return request({
    url: '/system/total/user/count',
    method: 'get',
    params: query
  })
}
// 租户数量趋势
export function useMoonTotal(query) {
  return request({
    url: '/system/total/tenant/moon/count/total',
    method: 'get',
    params: query
  })
}
// 租户数统计
export function useMoonTotalNumber(query) {
  return request({
    url: '/system/total/tenant/count',
    method: 'get',
    params: query
  })
}
// 租户组用户TOP10
export function userTop(query) {
  return request({
    url: '/system/total/tenant/group/user/top',
    method: 'get',
    params: query
  })
}
// 租户组登录次数TOP10
export function userLoginTop(query) {
  return request({
    url: '/system/total/tenant/group/login/top',
    method: 'get',
    params: query
  })
}